Adding command line useability improvements. #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
requirements.txtto allow end users to install all dependencies usingpip install -r requirements.txt-hto list available options and their descriptionModified
argparseand accept command line argumentsHow to install script dependencies
Run
pip install -r requirements.txt(assuming you have Python and PIP installed)How to run the script
Transform
Transform
input.stlSTL file and save output totransformedfolder. Use angle of 16 degrees and run 1 iteration. Default isoutwardtransformation.Example:
Transformation_STL_var_angle.py --file input.stl --output transformed --angle 16 --iterations 1Back transform GCode
Back transform
test_transformed_outward_16deg_0.8n_0.55mm_PETG_MK3S_32m.gcodeand save totransformedfolder. Use filename to detect transformation parameters.Example:
Transformation_STL_var_angle.py --file test_transformed_outward_16deg_0.8n_0.55mm_PETG_MK3S_32m.gcode --output transformedAlternatively you could also specify angle and direction via command line parameters.